﻿using System;

namespace CSclass
{
     public class Text
    {
        //定义私有的静态类整形
        private static int class_id;

        //定义私有的只读的id
        private readonly int id;

        //定义公开的只读的字符串类型字段
        public readonly string class_name;

        //定义公开的静态类字符串类型
        private static int name;

        //定义公开的只读的静态的class_age
        internal static int class_age;

        //定义内部只读的整形字段age
        internal readonly int age;

        //派生类的代码只读
        protected readonly int class_number;

        //定义派生类代码访问
        protected static int number;
        


        
    }
    //在任何项目可以访问的访问类
    public  abstract class  Class2
    {
        //定义私有的只读的字段id
        private static int class_id;

        //定义只读的字段id
        private readonly int id;
        
        //定义公开的只读的字符串类型class_name
        public  readonly string class_name;

        //定义公开的静态类字符串
        private readonly string name;

        //定义只读的整形字段
        internal readonly int age;

        //定义派生类的只读代码
        protected readonly int calss_number;

        //定义派生类的静态整形字段
        protected static int number;

    }
    //密封的可以在任何项目中访问
    public sealed class Class3
    {
        //密封包
        //密封的定义只有只读的整形字段
        private static int class_id;

        //密封的定义只有私有的字段
        private readonly int id;

        //密封的定义公开的只读字符串类型
        public readonly string class_name;

        //密封的公开的静态的字符串
        private readonly string name;

        //密封的定义内部的静态的整形字段
        internal static int class_age;

        //密封的定义只读的整形字段
        internal  readonly int age;

        //密封的定义派生的类
        protected readonly int class_number;

        //密封的派生类整形字段
        protected static int number;
    }


    
}
